﻿<UserControl x:Class="BingSpatialDataServiceExcelAddin.Views.DownloadPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:controls="clr-namespace:BingSpatialDataServiceExcelAddin.Controls"
             Width="400" Height="130">
    
    <Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="20"/>
            <RowDefinition Height="30"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="40"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <TextBlock Text="Downloading Data Source. This may take several minutes." Grid.ColumnSpan="2"/>

        <TextBlock Text="Status:" Grid.Row="1" VerticalAlignment="Center"/>
        <TextBox Name="Status" IsEnabled="False" Grid.Row="1" Grid.Column="1" Width="330" Height="20"/>

        <StackPanel VerticalAlignment="Center" Grid.ColumnSpan="2" Grid.Row="2" HorizontalAlignment="Center">
            <ProgressBar IsIndeterminate="True" Height="25" Width="200"/>
            <controls:TimerTextBlock x:Name="ElapsedTimer" IsCountDown="False" Width="150" TextAlignment="Center" FontSize="24" Padding="10"/>
        </StackPanel>
    </Grid>
</UserControl>
